package com.vhall.component.controller.interactive.facade;

import com.alibaba.fastjson.JSONObject;
import com.vhall.component.entity.interactive.vo.*;
import com.vhall.component.entity.page.vo.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author guoxin.wang
 * @date 2021/5/11
 */
@FeignClient(value = "QuestionAdmFacade", path = "/v4/question/admin")
public interface QuestionAdmFacade {

    /**
     * 控制台-创建问卷
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @PostMapping(value = "/get")
    QuestionConsoleCreateRspVO info(@Validated QuestionConsoleCreateReqVO reqVO);

    /**
     * admin-问卷列表
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @GetMapping(value = "/list")
    PageVO<QuestionAdmRspVO> list(@Validated QuestionAdmListReqVO reqVO);

    /**
     * admin-删除问卷
     *
     * @param reqVO 参数
     * @return 返回值
     */
    @GetMapping(value = "/delete")
    JSONObject delete(@Validated QuestionAdmDeleteReqVO reqVO);

}
